package com.bill.pokerbe.model;

import java.util.HashMap;

import static com.bill.pokerbe.model.CardType.*;
import static com.bill.pokerbe.model.CardType.梅花;

public class CardCommon {
    private static String[] cardNumList = new String[]{"2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"};
    private static HashMap<String, Integer> cardNumScore = new HashMap<String, Integer>() {{
        put("2", 2);
        put("3", 3);
        put("4", 4);
        put("5", 5);
        put("6", 6);
        put("7", 7);
        put("8", 8);
        put("9", 9);
        put("10", 10);
        put("J", 11);
        put("Q", 12);
        put("K", 13);
        put("A", 14);
    }};

    public static CardType[] CardTypeList() {
        return new CardType[]{红心, 黑桃, 方块, 梅花};
    }

    public static String[] CardNumList() {
        return cardNumList;
    }

    public static long GetCardNumberScore(String cardNum) {
        return cardNumScore.get(cardNum);
    }
}
